import React from 'react';

export type SfwContentListContainerProps = {
  /**
   * 当前选中的 key
   */
  activeKey: string;
  /**
   * 内容项，根据 key 显示
   */
  contentList: Record<string, React.ReactNode>;
} & Record<string, any>;

const SfwContentListContainer: React.FC<SfwContentListContainerProps> = (
  props,
) => {
  const { activeKey, contentList } = props;

  console.debug('[SFW] SfwRequestContainer', props);

  return <>{contentList[activeKey]}</>;
};

export default SfwContentListContainer;
